﻿<phone:PhoneApplicationPage 
	x:Class="AVICFEEDSApp.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait"  Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	<toolkit:TransitionService.NavigationInTransition>
		<toolkit:NavigationInTransition>
			<toolkit:NavigationInTransition.Backward>
				<toolkit:TurnstileTransition Mode="BackwardIn"/>
			</toolkit:NavigationInTransition.Backward>
			<toolkit:NavigationInTransition.Forward>
				<toolkit:TurnstileTransition Mode="ForwardIn"/>
			</toolkit:NavigationInTransition.Forward>
		</toolkit:NavigationInTransition>
	</toolkit:TransitionService.NavigationInTransition>

	<Grid x:Name="LayoutRoot" Background="Transparent">
		<controls:Pivot Title="AVIC FEEDS">
			<controls:PivotItem Header="list">
				<StackPanel Height="Auto" Width="Auto">
					<TextBlock Name="ContactResultsLabel" Text="loading list..." TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}"  />
					<ListBox Name="ContactResultsData" ItemsSource="{Binding}" Height="Auto" Margin="5,0,5,0" IsHitTestVisible="False">
						<ListBox.ItemTemplate>
							<DataTemplate>
								<StackPanel Orientation="Horizontal" Margin="10,0,0,15" VerticalAlignment="Center">
									<Image Source="appbar.map.poi.rest.png" VerticalAlignment="Center" />
									<TextBlock Name="ContactResults" Text="{Binding Path=Key, Mode=OneWay}" Tag="{Binding Path=Value, Mode=OneWay}" Style="{StaticResource PhoneTextLargeStyle}" VerticalAlignment="Top" />
								</StackPanel>
							</DataTemplate>
						</ListBox.ItemTemplate>
					</ListBox>
				</StackPanel>
			</controls:PivotItem>

			<controls:PivotItem Header="about">
				<StackPanel>
					<TextBlock Height="Auto" HorizontalAlignment="Left" Margin="10,10,0,0" Name="aboutText" VerticalAlignment="Top" TextWrapping="Wrap" Width="Auto">
						<Run Text="Search for places using your phone's search button, Local Scout, or the built in Maps application.  Pivot over to apps and select AVIC FEEDS to save places as POIs." />
						<LineBreak />
						<LineBreak />
						<Run Text="To search for an address, tap the Search button in this app." />
						<LineBreak />
						<LineBreak />
						<Run Text="This application was privately developed and is not affiliated with the Pioneer Corporation." />
					</TextBlock>
					<TextBlock Height="Auto" HorizontalAlignment="Left" Margin="10,25,0,10" TextWrapping="Wrap" Width="Auto" Style="{StaticResource PhoneTextSubtleStyle}" FontSize="16">
						<Run Text="PIONEER, AVIC FEEDS are trademarks or registered trademarks of Pioneer Corporation." />
						<LineBreak />
						<LineBreak />
						<Run Text="All other brand, product names, or logos may be trademarks or registered trademarks of their respective holders." />
					</TextBlock>
				</StackPanel>
			</controls:PivotItem>
		</controls:Pivot>
	</Grid>

	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton x:Name="SearchButton" IconUri="/appbar.feature.search.rest.png" Text="search" Click="SearchButton_Click"/>
			<!--<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"/>
			</shell:ApplicationBar.MenuItems>-->
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>